<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Return Hash32 checksum of given string</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.udm-hash32" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">udm_hash32</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.3, PHP 5 &lt; 5.1.0, PECL mnogosearch &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">udm_hash32</span> &mdash; <span class="dc-title">Return Hash32 checksum of given string</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.udm-hash32-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>udm_hash32</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$agent</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$str</code></span>
   ) : <span class="type">int</span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>udm_hash32()</strong></span> will take a string
   <code class="parameter">str</code> and return a quite unique 32-bit hash
   number from it. 
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.udm-hash32-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">agent</code></dt>

     <dd>

      <p class="para">
       A link to Agent, received after call to
       <span class="function"><a href="udm_alloc_agent.html" class="function">udm_alloc_agent()</a></span>.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">str</code></dt>

     <dd>

      <p class="para">
       The input string.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.udm-hash32-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns a 32-bit hash number.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.udm-hash32-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="udm_alloc_agent.html" class="function" rel="rdfs-seeAlso">udm_alloc_agent()</a> - Allocate mnoGoSearch session</span></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>